package Rational;

public class Main {
    public static void main(String[] args) {
        Rational rn1 = new Rational();
        rn1.setNumerator(3);
        rn1.setDenominator(4);

        Rational rn2 = new Rational();
        rn2.setNumerator(1);
        rn2.setDenominator(2);


        Rational sum = rn1.add(rn2);
        System.out.println("Sum: " + sum.getNumerator() + "/" + sum.getDenominator());


        Rational diff = rn1.sub(rn2);
        System.out.println("Difference: " + diff.getNumerator() + "/" + diff.getDenominator());


        Rational product = rn1.muti(rn2);
        System.out.println("Product: " + product.getNumerator() + "/" + product.getDenominator());


        Rational quotient = rn1.div(rn2);
        System.out.println("Quotient: " + quotient.getNumerator() + "/" + quotient.getDenominator());
    }


}
